package yxy.game.pm2.bean.db.po;

import yxy.apple.db.ResultObjectBuilder;

/**
 * Author HYB
 * Date 2021/12/7
 * Time 19:54
 */
public class TaskPo {

    private String playerCode;
    private String code;
    private int dataId;
    private long progress;
    private boolean finish;
    private boolean reward;
    private int extraParam;// 附加参数 扩展功能用
    private long updateTime;//更新时间戳

    public static ResultObjectBuilder<TaskPo> builder = rs -> {
        TaskPo u = new TaskPo();
        u.setPlayerCode(rs.getString("pCode"));
        u.setCode(rs.getString("code"));
        u.setDataId(rs.getInt("dataId"));
        u.setProgress(rs.getLong("progress"));
        u.setFinish(rs.getBoolean("finish"));
        u.setReward(rs.getBoolean("reward"));
        u.setExtraParam(rs.getInt("extraParam"));
        u.setUpdateTime(rs.getLong("updateTime"));
        return u;
    };

    public String getPlayerCode() {
        return playerCode;
    }

    public void setPlayerCode(String playerCode) {
        this.playerCode = playerCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getDataId() {
        return dataId;
    }

    public void setDataId(int dataId) {
        this.dataId = dataId;
    }

    public long getProgress() {
        return progress;
    }

    public void setProgress(long progress) {
        this.progress = progress;
    }

    public boolean isFinish() {
        return finish;
    }

    public void setFinish(boolean finish) {
        this.finish = finish;
    }

    public boolean isReward() {
        return reward;
    }

    public void setReward(boolean reward) {
        this.reward = reward;
    }

    public int getExtraParam() {
        return extraParam;
    }

    public void setExtraParam(int extraParam) {
        this.extraParam = extraParam;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }
}
